There are 40 eggs in two baskets altogether. If 5 eggs are transferred from the first to the second basket, the first basket will have 2 more eggs than the second one. How many eggs are in the second basket at first?
x = basket 1
40 - x = basket 2
x - 5 = 40-x +5 + 2
2x = 52
x = 26 basket 1 basket 2 = 14 eggs