If you are tired of staring at the logo while it boots, you can press esc or tab whie it boots and watch the boot messages. If you like this better, you can make it permanent by removing quiet splash from the grub command line in /etc/default/grub and run update-grub. (Some people think the logo is pretty. I'd prefer to know what is going on.)
If is the slow boot that annoys you rather than actually staring at the logo, you can use systemd-analyze to mesure what is taking so long in the boot and optimize it.
For clarification, newer versions of Ubuntu show both the manufacturer's logo and graphics for Ubuntu during the boot process. So it is unclear if what you are seeing is part of the laptop's POST or if it is Ubuntu booting while leaving the manufacturer's logo on the screen.
In both cases, pressing tab may leave the logo screen to show details of what is going on. If it is the laptop's POST that is taking your 40 seconds, then there's nothing Ubuntu can do about that and it's actually off topic for this forum.
Your output from systemd-analyze blame says at least 9 seconds of that 40 could be ubuntu booting.