Interesting that out of 16 replies to the question, 5 addressed the question... the rest addressed my response.
Looks like I touched a few nerves here.
Tisk, Tisk. Off Topic and all.
If you have issues with the correctness of my response, then by all means you should bring it up in the thread. I freely admit my fallibility.
But if you just don't like my answer or how I frame it, then you are free to start a new thread for people to complain about me if you wish, though that still does not help the student who asked the original question.
The OP is a student.
The students teacher assigned a lesson.
The student came here for help, specifying the the hardware they have to work with.
Answers that suggest other hardware, while well meaning, are not helpful... the student has to use the given materials.
I made mention to CLUES.
The teacher gave clues. Indeed, as I tried to point out, all the clues you need.
A previous responder gave more clues.
And then I gave more clues... and a framework for research.
Given all these clues , a properly motivated student could arrive at the answer 'under their own steam' using the most simple algebra.
And having put in the effort, to research and understand the physics, and the math, they will learned something valuable, instead of just regurgitating an answer they got from... somewhere.
If you give the student the complete answer, with source code and schematics and parts lists, then, yes you have answered their question, and solved their immediate problem.
BUT YOU HAVE NOT HELPED THE STUDENT UNDERSTAND ANYTHING!
If your goal is to help others learn, then you provide guidance and references.
If your goal is only to show how smart you are, then just give the answer already so we can all get on with our business.