Cost Function

  • The cost of dinner is a function of the number of students.

  • The cost is partly constant and partly varies directly with the number of students.

Given Data

  • Cost for 19 students: 74 Naira

  • Cost for 30 students: 96 Naira

Cost Formula

  • Let ( C ) be the cost and ( n ) be the number of students:

    • ( C = k + mn )

    • Where ( k ) is the constant part, and ( m ) is the variable part per student.

Finding Constants

  • For 19 students: ( 74 = k + 19m )

  • For 30 students: ( 96 = k + 30m )

  • Solve these two equations to find ( k ) and ( m ).

Cost for 15 Students

  • Once constants ( k ) and ( m ) are found, use ( C = k + 15m ) to calculate the cost for 15 students.