Let's calculate the time it takes for Anand to walk the first kilometer:
Time taken for the first kilometer = Distance / Speed = 1 km / 3 km/h = 1/3 hour = 20 minutes
Anand has 30 minutes (from 8.30 a.m. to 9.00 a.m.) to reach the school, and he has already spent 20 minutes walking the first kilometer. Therefore, he has 30 - 20 = 10 minutes left to walk the second kilometer.
To determine the required speed for the second kilometer, we can use the formula:
Speed = Distance / Time
Speed = 1 km / (10/60) hour = 6 km/h
Therefore, Anand should walk at a speed of 6 km/h for the second kilometer in order to reach school just in time.