You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

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 ?
Output:
$ 50