These two numbers are different from a serial number. Depending on the carrier, your device will have either an IMEI or MEID. On the other hand, an IMEI or MEID is only used for phones or other communication devices. Serial numbers make it easier for the makers to organize and keep track of their products. For example, your phone's serial number will be different from every other phone Samsung has made.
The serial number is a unique number assigned by the manufacturer (like Samsung) to help identify an individual device, like a phone, tablet, TV, and so on. A serial number and IMEI are similar, but have some differences.