Thankfully actual exam questions are not that crazy. But sometimes teachers think that giving similar questions will "enlighten" our analytical thinking. Anyhow thanks for even reading the question.
This isn't actually any problem related to a college course. Just a semester practice exam problem from my high school. I have the enough knowledge to understand each of the stages in the question. But putting it all together gives me a headache.