The task is to generate the correct answer for a given math problem.
One example is below.
Q: a multiple choice test consists of 4 questions, and each question has 5 answer choices. in how many r ways can the test be completed if every question is unanswered ?
A: 625
Rationale: Total r of 5 * 5 * 5 * 5 = 5 ^ 4 = 625 ways to answer all of them. Therefore, the answer is 625.
Q: Problem: from an island , it is possible to reach the mainland by either ferry p or ferry q . ferry p travels for 3 hours at 8 kilometers per hour , while ferry q takes a route that is two times longer . if ferry p is slower than ferry q by 4 kilometers per hour , how many hours longer is the journey of ferry q compared with the journey of ferry p ?
A:
1