title: Compare the position of the words in two strings
body: <p>I have a task: Compare the position of the two input strings (the strings is represented as List or Linked List). I'm using Python 3.9.5</p>
  <p>For example:</p>
  <p>A = ['I', 'am', 'a', 'good', 'student']</p>
  <p>B = ['I', 'am', 'student']</p>
  <p>=&gt; match 3/5</p>
  <p>I have tried many way but it isn't correct.</p>
  <p>Please help me. Thank you</p>