Infosys Company Logical Reasoning Cryptography

Every day a cyclist meets a car at the station.The road is straight and both are travelling in the same direction. The cyclist travels with a speed of 12 mph.One day the cyclist comes late by 20 min. and meets the car 5miles before the Station. What is the speed of the car?

Read Solution (Total 10)

Infosys Other Question

2XX
3XX
---
5XX
X4X
XX3
-------
XXXXX
-------
Find out the X's and seven is not there in the calculation.

Please explain ?
The puzzle is Nine IIT students were sitting in a classroom. Their professor wanted them to test. Next day the professor told all of his 9 students that he has 9 hats, The hats either red or black color. He also added that he has at least one hat with red color and the no. of black hats is greater than the no. of red hats. The professor keeps those hats on their heads and ask them tell me how many red and black hats the professor have? Obviously students can not talk to each other or no written communication, or looking into each other eyes; no such stupid options and no tricks.
Professor goes out and comes back after 20 minutes but nobody was able to answer the question. So he gave them 10 more minuets but the result was the same. So he decides to give them final 5 minutes. When he comes everybody was able to answer him correctly.

So what is the answer? and why?