Let the time taken by the small outlet to empty the full tub be n hours. Suppose the volume of the tub is V. Volume of tub filled by the tap in 1 hour=
V
10
Volume of tub emptied by the small outlet in 1 hour=
V
n
Volume of tub filled in 5 hours + Volume of tub filled in 7 hours = V