Was the electric light invented earlier or the automobile invented earlier?

1879, Edison invented the electric light.

The world-recognized automobile inventor is German karl friedrich Benz. He developed the world's first carriage tricycle in 1885, and obtained the world's first automobile invention patent on1886+129 October.