A car starting from rest accelerates at a constant rate of 5m per second square for some time. It then retards at a constant rate of -10m per second square and finally comes to rest. If the total taken time is 6 second. What is the maximum speed attained by the car ?