When Mr. Smith returned from Europe in 1966, he found that he had in his possession 35 British sixpence coins, 55 French ten-centime pieces, and 77 Greek drachmas. Mr. Smith converted each of these coins to its value in American money (rounded off to the nearest cent) and found that the total was worth $5.86. How much was each coin worth in 1966 (to the nearest cent)?
I started by setting up the equation 35B+55F+77G=586, but I was not sure how to solve a three-variable diophantine equation.