While working the evening shift, Officer K took 8 hours to complete a task at his work station and Officer M took 10 hours to complete the same task at his work station. How many hours would it take Officer K and Officer M to complete the same task working together, each working at his own work station?

The answer was 3 but i have no idea how to solve this problem