Google translation:
An equal number of boys and girls attended the art exhibition. When 40 boys and 85 girls left, there were six times as many boys as girls. How many girls went to the art exhibition first?
b = g number of boys = number of girls
b- 40 = 6*(g - 85)
Use first eqn in second eqn
g - 40 = 6g - 510
Can you finish it from there?