An alternative way to view this as a geometric sequence and put the inputs & outputs in a table, like below. Whether you've learned about geometric sequences or not, it's okay. It just means to get from one output to the next you multiply by the same number over and over.
x | y
0 |
1 |
2 | 336
3 | 2,688
4 |
We can see that the two outputs 336 and 2688 are next to each other, so we can ask "what do we multiply by 336 to get to 2688?" Turns out this number is 8. This helps us navigate the table! Moving downward we multiply by 8 each time. Alternatively, moving upwards we simply do the opposite and divide by 8 each time. So here's the new table:
x | y
0 | 5.25
1 | 42
2 | 336
3 | 2,688
4 | 21,504
Finally, a simple exponential function is always of the form y = a * bx where a is the initial or starting value (ours is 5.25) and b is the growth factor (ours is 8). So our function is y = 5.25 * 8x and we're done!