B) Conducting a patent search
The first step in applying for a patent is to conduct a patent search to determine if your invention is novel and does not infringe on existing patents. This helps in assessing the likelihood of obtaining a patent before moving forward with the application process.