There were 76 strawberries and rambutans in a basket. John gave away 2/5 of the strawberries and 1/2 of the rambutans. In the end, there were 42 fruits left. How many strawberries were there in the basket at first?

number of strawberries --- x

number of rambutans = 76-x

3/5(x) + 1/2(76-x) = 42

solve for x, I suggest multiplying each term by 10, the LCD