Find the ship type that are used by both ships with Panama and Malta flags.
select type from ship where flag = 'Panama' intersect select type from ship where flag = 'Malta'