The task is to generate the correct answer for a given math problem.

[EX Q]: Problem: a lent rs . 5000 to b for 2 years and rs . 3000 to c for 4 years on simple interest at the same rate of interest and received rs . 1540 in all from both of them as interest . the rate of interest per annum is ?
[EX A]: 7 %

[EX Q]: Problem: zachary is helping his younger brother , sterling , learn his multiplication tables . for every question that sterling answers correctly , zachary gives him 3 pieces of candy . for every question that sterling answers incorrectly , zachary takes away two pieces of candy . after 6 questions , if sterling had answered 2 more questions correctly , he would have earned 31 pieces of candy . how many of the 6 questions did zachary answer correctly ?
[EX A]: 7

[EX Q]: Problem: sam ’ s car was fined when he gave joe and peter a ride , so they decided to help sam pay the fine . joe paid $ 6 more than 1 / 4 of the fine and peter paid $ 6 less than 1 / 3 of the fine , leaving pay $ 10 less than 1 / 2 the fine to complete the payment . what fraction of the fine did sam pay ?
[EX A]:
$ 50