They will be 18 km apart at 5 pm.
Step-by-step explanation:
Speed of Raj is 5km/hr and speed of Dev is 7km/hr
Since they are going in opposite direction,
So, every 1 hours there difference will be (7 + 5) km = 12 km
Now, they will be apart 18 km distance 18/12 hours = 1 hour 30 min
The time will be 3:30 PM + 1 hour 30 min = 5 :00 PM