write an equation

Solve one equation to x or y then plug that equation into the other equation and solve. I made the first equation to solve for carrots.

10x+7y=263

10x=263-7y

x=(263-7y)/10. Carrots equation

4x+8y=230

4 [(263-7y)/10] +8y=230 solve for y which will be the calories from chocolate

Then when you find y plug that answer into one of the equations to get the calories from carrots