The outlet and plug type used in Mexico are A and B and in Costa Rica are A and B and they are compatible with each other.
In Costa Rica, outlets of type A and B are in use.
In Mexico, outlets of type A and B are in use.