x represents the total snacks and y represents the total rides
Standard form: Ax + By = C
In this case,
5x + 2y = 23