Formalize the following solution into an appropriate mathematical equation
y is 24 when x is 8
This can be formally written as an equation such as y = 3x where when x is 8, y will be equal to 24.
Complete the following task based on the instruction and optional input provided.### Instruction:
Formalize the following solution into an appropriate mathematical equation

### Input:
y is 24 when x is 8

### Output:
This can be formally written as an equation such as y = 3x where when x is 8, y will be equal to 24.