solved prob18