Chain extensions in @extend in SASS

The @extend directive also supports chained (sequential) extension, i.e. a selector can be extended by another selector, which in turn is extended by a third selector. For example:

Let's look at an example:

style.scss.warning {
  border: 1px solid;
  background-color: #ffd900;
}
.personalWarning {
  @extend .warning;
  border-width: 3px;
}
.systemWarning {
  @extend .personalWarning;
  position: center;
}

As we can see from the compilation result, all elements with the class .systemWarning also have the styles of the classes .warning and .personalWarning:

style.css.warning, .personalWarning, .systemWarning {
  border: 1px solid;
  background-color: #ffd900;
}
.personalWarning, .systemWarning {
  border-width: 3px;
}
.systemWarning {
  position: center;
}
Задание 1

Tell me what the result of compiling the following code will be:

styles.scssdiv {
  font-size: 10px;
  color: #181402;
}

.main-block {
  @extend div;
  border: 2px solid orange;
}

#warning-text {
  @extend .main-block;
  margin-top: 10px;
}   
Задание 2

Tell me what the result of compiling the following code will be:

styles.scssp {
  padding: 10px;
}

.main-text {
  font-weight: 800px;
}

.card {
  @extend p;
  color: #021338;
}

.product-card {
  @extend .card, .main-text;
  font-size: 12px;
}
Задание 3

Tell me what the result of compiling the following code will be:

styles.scssp {
  padding: 5px;
}

.main-text {
  @extend p;
  font-size: 14px;
}

.card {
  @extend .main-text;
  border: 1px solid black;
}

.product-card {
  @extend .card;
  background-color: #e1f1f1;
}