.
The ratio of the number of blue sticks to the number of green sticks in a box was 4:1.
When David took out some blue and sticks and replaced them with an equal number of green sticks,
the ratio of the number of blue sticks to the number of green sticks became 3:1.
If there were 185 green sticks in the box now,
(a) find the total number of blue and green sticks in the box,
(b) find the number of green sticks in the box at first.
~~~~~~~~~~~~~~~~~~~
This problem is good for mental solution,
if to solve it in a backward manner.
According to the condition, in the final state, there are 185 green sticks in the box,
and the number of blue sticks is thrice of it, i.e. 185*3 = 555.
Thus the total number of sticks in the final state is 185 + 555 = 740.
+------------------------------------------------------------------+
| Now notice that total number of sticks in the final state |
| is THE SAME as at the beginning, according to the problem. |
+------------------------------------------------------------------+
HENCE, there were 740 sticks in the box at the beginning, and the ratio of blue to green sticks was 4:1.
So, there were 4+1 = 5 equal groups; each group contained 740/5 = 148 sticks.
Thus the problem is just solved: at the beginning, there were 148 green sticks and 148*4 = 592 blue sticks.
ANSWER. There were 148 green sticks and 148*4 = 592 blue sticks in the box at first.
There were 740 sticks in the box (the same number at the beginning and at the end).
Solved mentally, without using any equation / equations.
-----------------
What is written in the post by @Octo-pie7, is IRRELEVANT to the problem.
So you better ignore it, for your safety and for peace in your mind.