Can someone please help me with a sentence? this is what i have so far~

We were inspired to use the Miranda rights as our topic when in school learning about rights and responsibilities.*****sentence I need help with****.

We were motivated to research and write about Miranda rights when we were learning about rights and responsibilities.

Actually, this would be better for the first part of the sentence:

We decided to research and write about ...

Of course, I'd be happy to help you with your sentence. To make it clearer and more concise, you could try rephrasing it as follows:

"While learning about rights and responsibilities in school, we were inspired to choose the topic of Miranda rights."

This sentence simplifies the original sentence and highlights the connection between your inspiration and the topic. Remember to adapt it further if needed, based on the context of your writing.