Will they work if I’m replacing the halogens bulbs with LEDsThose power supplies (not transformers, the label is wrong) are similar spec so should be interchangeable assuming you are using them for (obsolete) halogen lights not LEDs.
The other box just looks like a connector.
Midas, I think our messages crossed at same time - pls see my suggestion. SFKwhat do I need to do?

No they won’t. The “transformer” box has a minimum rating of 20VA (=watts). Your LED lamp will be much less than that. Best to follow the guidance given in post #3.Will they work if I’m replacing the halogens bulbs with LEDs
If not, what do I need to do?
Thanks

the rub is dimensions 95mm x 65mm (excluding cables), so in the main will not fit through the whole the light fits in, also heavy, and more expensive than the electronic power supply, and it does not correct the voltage, however with LED that's not so important.
electronic power supply, will also go 0 - 50 VA, but the output frequency is not 50 Hz, likely in the MHz range, cheaper £11.47 compared with £23.94, regulated output, and will fit through hole, but can react with the Diode to form a transmitter. Some G5.3 lamps are marked 50 Hz, likely they will work but not sure.
is DC, likely will work with most G5.3 LED's £11.40 from same supplier. will likely fit through hole.
lamp holder will allow you to use low voltage GU10 lamps rather than G5.3 extra low voltage, at £2.50 there are versions with junction boxes, but aimed to get all from same seller so can compare prices. Advantage is can use smart GU10 bulbs, dimming and colour changing, and no transformer/power supply, disadvantage often problem getting earth wires to comply with BS 7671 and not permitted is some areas of a bathroom.
complete with junction box
as easier to install at £2.48 each, similar in toolstation, one shown screwfix. I can't really see a good reason for extra low voltage except where low voltage is not permitted.If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local