how are limericks and haikus alike

Both have a strict format (number of lines)

Both have a pattern for the lines (haiku=number of syllables, limerick=rhyming scheme
Hope that helps😀