Final answer:
To write a function for each babysitting option, we can use the formulas: Cost = (10 * number of children) + (5 * number of hours) and Cost = (15 * number of children) + (2 * number of hours).
Step-by-step explanation:
To write a function for each babysitting option, we can use the formula:
Function A: Cost = (10 * number of children) + (5 * number of hours)
Function B: Cost = (15 * number of children) + (2 * number of hours)
For example, if Victoria has 2 children and needs a babysitter for 4 hours:
Function A: Cost = (10 * 2) + (5 * 4) = 20 + 20 = 40
Function B: Cost = (15 * 2) + (2 * 4) = 30 + 8 = 38