This week's book giveaway is in the Open Source forum. We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line! See this thread for details.

I am helping my younger brother prep for aptitude tests. I have below a question for which I was able to get at the answer, but I am not sure if my approach is the fastest or the best. All he has is about 50 secs to work it out, but it took me more than that to get at the accurate answer.

--- A person who decided to go on a weekend trip should not exceed 8 hrs of travel time.

The average speed of the forward journey is 40mph. Traffic causes the average speed of the return journey to drop to 30mph.

How far can he select a picninc spot? ---

Please let me know what is the answer and what method you used to arrive at it. Thanks.

Ok, it took me 48 seconds to come up with this (including the long division and transferring the final decimal answer to the bottom of the page):

X is the distance from home to the picnic area. X/40 = travel time going out. X/30 = travel time returning. X/40 + X/30 <= 8 3X/120 + 4X/120 <= 8 7X/120 <= 8 7X <= 960 X <= 137 1/7 miles or 137.(142857) miles, however you want it expressed.

All units are in miles, hours, or miles per hour, whichever is appropriate. Ryan

Sabeer this is programming diversion forum and not about asking geographical region of the poster.You can PM her about knowing latitude/longitude of her location.