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