Checking Equations with Different Variables besides x and y

Hello!
I need help changing my coding to accept equations in the form c=5p as opposed to y=5x.
These inputs can be found on screens 1-3 of this activity.
Thank you!

Here you are: [Copy of] 8th Grade Proportional Relationships • Activity Builder by Desmos

When using a literal pattern, you can change it to whatever letter you need. When using the simpleFunction function, you can use any variables as optional parameters. When you use simpleFunction without any additional parameters, it just assumes you want to use x.

Also note that your code accepts a student just writing 5f, not requiring c = 5f. If you want to change that and don’t know how, let me know.