human
Calvin and Phoebe each have 8 more pastries than Frank but only five less than Grace. If Grace has 30 pastries, calculate the total number of pastries that the four have?
assistant
How many pastries does Grace have? ** If Grace has 30 pastries, then both Phoebe and Calvin each have 30-5 = <<30-5=25>>25 pastries.
How many pastries does Phoebe and Calvin have? ** The total number of pastries that Phoebe and Calvin have is 25+25 = <<25+25=50>>50
How many pastries do Phoebe, Calvin, and Grace have? ** Together, Phoebe, Calvin, and Grace have 50+30 = <<50+30=80>>80 pastries.
How many pastries does Frank have? ** Since Calvin and Phoebe each have 8 more pastries than Frank, then Frank has 25-8 = <<25-8=17>>17 pastries.
How many pastries do Frank, Phoebe, Calvin, and Grace have? ** Altogether, the four have 17+80 = <<17+80=97>>97 pastries.
#### 97