show detailed solution