Not quite sure what you mean by packet size = 10. DOUBLE are 64 bit. SINGLE are 32 bit. The data in UDP is represented as UNIT8. So you get a UINT8 packed size of 148.
148 * 8 = (64 * 1) + (32 * 35)
I am assuming you set up 'Input port data types' as {'double', 'single'}
If you send these out as UDP packets and then look at the packets using Wireshark you will see that each UDP packet has a data size of 148.
On the receive side its just the opposite of what was done for send. You set 'Output port dimensions' as {[1], [35]} and 'Output port data types' as {'double', 'single'}