Solve related rates problems (#544)