Detailed Solution