Solutions : Given :
'You are good'=256 ..(i)
'We are bad' = 637 ...(ii)
and 'Good and bad' =358 ....(iii)
From equations (i) and (iii), 'good' is coded as '5'.
From equations (ii) and (iii), 'bad' is coded as '3'.
From eqation (iii), 'and' is coded as '8'.