You can
put this solution on YOUR website!You can set up a proportion to help sovle this kind of problem:
Let H = the number of students who rode horses to school and W = the number of students who walked to school, then you can write:

Now you can substitute the W with 18 since that is the number of students who walked to school:

Now you can solve this for H, the number of students who rode horses to school:

Multiply both sides by 18.

The number of who rode horses to school was 4.